package cn.wolfcode.luowowo.search.repository;

import cn.wolfcode.luowowo.search.template.StrategyTemplate;
import cn.wolfcode.luowowo.search.template.UserInfoTemplate;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * spring-data-jpa接口
 */

@Repository
public interface StrategyTemplateRepository extends ElasticsearchRepository<StrategyTemplate,Long> {
    /**
     * 根据目的地名称查询所有攻略集合
     * @param destName
     * @return
     */
    List<StrategyTemplate> findByDestName(String destName);
}
